package com.wt.admin.config.prop;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;


@Data
@Configuration
@ConfigurationProperties(prefix = "setting")
public class IndexProp implements InitializingBean {

    private FileProp files;

    private KeyProp keys;

    private ModelPathProp modelPath;

    @Override
    public void afterPropertiesSet() throws Exception {
        files.init();
    }
}
